<?php
namespace app\common\lib;

class Api
{
    public static  function success($status = 0, $message = '',$data=[],$httpStatus=200)
    {
        $result = [
            'status' => $status,
            'message' => $message,
            'result' => $data
        ];
        return json($result,$httpStatus);
    }

}
